package main
import(
	"fmt"
	"strings"
)

func isUniqueString(s string) bool {
	if strings.Count(s,"") > 3000{
		return  false
	}
	for _,v := range s {
		if v > 127 {
			return false
		}
		if strings.Count(s,string(v)) > 1 {
			return false
		}
	}
	return true
}

func isUniqueString2(s string) bool {
	if strings.Count(s,"") > 3000{
		return  false
	}
	for k,v := range s {
		if v > 127 {
			return false
		}
		if strings.Index(s,string(v)) != k {
			return false
		}
	}
	return true
}

func main(){
	bRes :=false;
	strTmp1 := "abcd";
	strTmp2 := "abcdefghighlmn";	

	bRes = isUniqueString(strTmp1)	
	fmt.Printf("bRes=%v\n", bRes)

	bRes = isUniqueString(strTmp2)	
	fmt.Printf("bRes=%v\n", bRes)



}

